package com.ayu.shortlink.admin.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 流量风控配置消息
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "short-link.flow-limit")
public class UserFlowRiskControlConfiguration {
    /**
     * 是否开启
     */
    private Boolean enable;

    /**
     * 时间窗口，单位：秒
     */
    private String timeWindow;

    /**
     * 时间窗口内最大限流量
     */
    private Long maxAccessCount;
}
